/**
 * @(#)com.framework.demo.service.UserService
 *
 * Copyright (c) 2014-2018 上海纬视瑞科技有限公司
 *
 * DESC:
 *
 */
package com.framework.demo.service;

import com.framework.demo.bean.User;
import com.framework.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author fusf
 * @version 1.0  2017/4/14
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 查询全部
     * @return
     */
    public List<User> findAll(){
        return userMapper.findAll();
    }

    public int updateUser(User user){
        return userMapper.update(user);
    }

     public int insertUser(User user){
        return userMapper.insert(user);
    }

}
